angular.module('pa', [
    'pa.controller',
    'pa.service',
    'pa.fitler',
    'ngRoute'
    ])
.config(['$routeProvider', function ($routeProvider) {
    $routeProvider.when('/subnet', 
      {
        templateUrl: 'tpl/subnet.tpl.html', 
        controller: 'SubnetController'
      });     
    $routeProvider.when('/subnet/:sb', 
      {
        templateUrl: 'tpl/hosts.tpl.html', 
        controller: 'HostController'
      });     
    $routeProvider.when('/ip/:ip', 
      {
        templateUrl: 'tpl/ports.tpl.html', 
        controller: 'PortController'
      });                       
              
    $routeProvider.otherwise({redirectTo: '/subnet'});
}]);